package com.example.novelstory.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

@Data
@ApiModel(value = "信息表")
public class Message {
    @ApiModelProperty("角色id")
    private int id;
    @ApiModelProperty("内容")
    private String content;//text
    @JsonFormat(pattern="yyyy-MM-dd hh:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    @ApiModelProperty("创建时间")
    private Date createTime;
    @ApiModelProperty("用户账号")
    private int uid;
    @ApiModelProperty("状态")
    private Byte status;//tinyint
    //    @ApiModelProperty("权限id")
    private int pid;
    //    @ApiModelProperty("权限id")
    private int up;
    //    @ApiModelProperty("权限id")
    private int mid;
    //    @ApiModelProperty("权限id")
    private String type;

}
